# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=safeeyes
pkgver=2.2.1
pkgrel=0
pkgdesc="Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder"
url="http://slgobinath.github.io/SafeEyes/"
arch="noarch"
license="GPL-3.0-only"
depends="
	libayatana-appindicator
	py3-babel
	py3-dbus
	py3-psutil
	py3-xlib
	python3
	xprintidle
	"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/slgobinath/SafeEyes/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/SafeEyes-$pkgver"
options="!check" # no upstream checks

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
025edf890b1ac765de1406899921686f11e5d84cbbe875e3835acd422294ec90dce36fe206b407ba9d2e3423a39c2a456840b4ebb4887a527faa0991516059c4  safeeyes-2.2.1.tar.gz
"
